package com.hncic.tx.center.mvc;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author smj E-mail: 463136320@qq.com
 * @created 2017年8月4日 下午6:27:06
 * @since jdk1.8
 * @version 1.0
 * @describe
 */
@RestController
@EnableAutoConfiguration
public class DemoController {
	@RequestMapping("/")
	String home() {
		return "Hello World!";
	}

	@RequestMapping("/hello/{myName}")
	String index(@PathVariable String myName) {
		return "Hello " + myName + "!!!";
	}
}
